GBML manual / Constants

TEXT_LEAN_FORWARD

The top of the line stays full size and the bottom shrinks away - like a sign tipped forward, with its bottom edge farther from you.

Works differently on Game Boy - The Game Boy gives a TEXT_LEAN_FORWARD text a copy behind the letters, down and to the right, and cannot narrow the bottom of the line; with an xshear a text on the screen leans in 4 steps instead.

Works differently on Game Boy Color - The Game Boy Color gives a TEXT_LEAN_FORWARD text a copy behind the letters, down and to the right, and cannot narrow the bottom of the line; with an xshear a text on the screen leans in 4 steps instead.

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

TEXT_LEAN_FORWARD: constant

Description

Names the tipped-forward shape, for draw_text_3d and draw_text_3d_anchored (and its scaled form, draw_text_3d_scaled): the top of the line stays full size and the bottom shrinks away, like a sign tipped forward so its bottom edge is farther from you.

A real capture - the flat words LOOK OUT, then the same words drawn with TEXT_LEAN_FORWARD at depth 2, 4 and 6: the bottom of every letter gets narrower and narrower while the top stays wideA real capture - the flat words LOOK OUT, then the same words drawn with TEXT_LEAN_FORWARD at depth 2, 4 and 6: the bottom of every letter gets narrower and narrower while the top stays wide
A real capture - the flat words LOOK OUT, then the same words drawn with TEXTLEANFORWARD at depth 2, 4 and 6: the bottom of every letter gets narrower and narrower while the top stays wide

Top: the same words with plain draw_text. Then TEXT_LEAN_FORWARD at depth 2, 4 and 6. Real pictures from a Game Boy Advance ROM.

A real capture, 12 frames played in a loop - the words LOOK OUT drawn with TEXT_LEAN_FORWARD while the depth goes 4, 5, 6, 5, 4, 3, 2, 1, 0 and back up, with the same words drawn flat in a line below them. At depth 6 the bottom of every letter is far narrower than the top, and at depth 0 the curved line is just the same as the flat one. The first frame, which is all a viewer that cannot animate shows, is depth 4, the page's example.A real capture, 12 frames played in a loop - the words LOOK OUT drawn with TEXT_LEAN_FORWARD while the depth goes 4, 5, 6, 5, 4, 3, 2, 1, 0 and back up, with the same words drawn flat in a line below them. At depth 6 the bottom of every letter is far narrower than the top, and at depth 0 the curved line is just the same as the flat one. The first frame, which is all a viewer that cannot animate shows, is depth 4, the page's example.
A real capture, 12 frames played in a loop - the words LOOK OUT drawn with TEXTLEANFORWARD while the depth goes 4, 5, 6, 5, 4, 3, 2, 1, 0 and back up, with the same words drawn flat in a line below them. At depth 6 the bottom of every letter is far narrower than the top, and at depth 0 the curved line is just the same as the flat one. The first frame, which is all a viewer that cannot animate shows, is depth 4, the page's example.

The same call with only depth changing (the line under the picture says which depth): twelve real pictures played in a loop, each held for about a third of a second. The plain line under the curved one is draw_text and never changes. A viewer that does not animate shows the first frame, depth 4.

Depths 1 to 3 are gentle and depths 4 to 6 are the dramatic ones - read draw_text_3d for what each depth does and why the deep ones want a big, bold font.

Example

text_align(ALIGN_CENTER);
draw_text_3d(120, 80, "LOOK OUT", TEXT_LEAN_FORWARD, 4);

A line that leans toward the ground, the way a word does when it falls on you.

See also: draw_text_3ddraw_text_3d_scaled